package com.uniledger.commonlib.web3.util;

import android.webkit.URLUtil;

public class Web3Utils {
    public static String formatUrl(String url) {
        if (URLUtil.isHttpsUrl(url) || URLUtil.isHttpUrl(url)) {
            return url;
        } else {
            return "http://" + url;
        }
    }
}
